import pytest
from base.base_driver import ChromeDriver


@pytest.fixture(scope="module")
def driver():
    chrome_driver = ChromeDriver(headless=False)
    yield chrome_driver  # 使用 yield 返回驱动实例
    chrome_driver.close()  # 测试结束后关闭浏览器
